#ifndef _FSM_SENSOR_H
#define _FSM_SENSOR_H

#define device_ADDR 0x01

#define STATE_ADDR 1
#define STATE_CMD 2
#define STATE_ACC_SB_X 3
#define STATE_ACC_SB_Y 4
#define STATE_ACC_SB_Z 5
#define STATE_ACC_S1024 6
#define STATE_INTEGRAL 7

extern unsigned char fsm_state;
extern unsigned char busy;
void fsm_sensor(unsigned char *state,unsigned char counter);
#endif